﻿using System;
using System.Collections.Generic;
using System.Data;
using Wei8808Cms.DAL;
using Wei8808Cms.Model;

namespace Wei8808Cms.BLL
{
    public class AdbannerBLL
    {
        private readonly AdbannerDAL _dal = new AdbannerDAL();

        public int GetCount()
        {
            return _dal.GetCount();
        }

        public DataSet GetPageList(int pagesize, int currentPage)
        {
            return _dal.GetPageList(pagesize, currentPage);
        }

        public bool Add(AdbannerInfo model)
        {
            return _dal.Add(model);
        }

        public List<AdbannerInfo> GetAdbannerList()
        {
            return _dal.GetAdbannerList();
        }

        public bool Delete(List<AdbannerInfo> list)
        {
            return _dal.Delete(list);
        }

        public AdbannerInfo GetAdbannerInfo(string id)
        {
            return _dal.GetAdbannerInfo(id);
        }

        public bool Update(AdbannerInfo model)
        {
            return _dal.Update(model);
        }
    }
}
